import sys
import os
from cx_Freeze import setup, Executable

# C:\Work\Apps\miniconda3\envs\py311\Library\lib
PYTHONDIR = 'C:\\Work\\Apps\\miniconda3\\envs\\py311\\Library\\lib'
#PYTHONDIR = 'F:\\Python36'
# PYTHON_DLL = PYTHONDIR + '\\DLLs\\'
os.environ['TCL_LIBRARY'] = PYTHONDIR + '\\tcl8.6'
os.environ['TK_LIBRARY'] = PYTHONDIR + '\\tk8.6'

base = None
 
executables = [
    Executable(
        "cmis_compare.py",
        target_name="cmis_compare.exe",
        icon="compare.ico",
        base=base)
]
 
include_files = [
    r'C:\Work\Apps\miniconda3\envs\py311\Library\bin\tcl86t.dll',
    r'C:\Work\Apps\miniconda3\envs\py311\Library\bin\tk86t.dll',
    r'C:\Work\D\NEO-GUI-Runtime-Win64\notes1\OSFZR400100C2GO1_CMIS_4.1_V0.20_Template_20220808.xlsm',
    r'C:\Work\D\NEO-GUI-Runtime-Win64\notes1\ZNN2343010_high_power_dump_20231113.txt',
    r'C:\Work\D\NEO-GUI-Runtime-Win64\notes1\ZNN2343010_low_power_dump_20231113.txt',
    r'README.TXT',
]
 
buildOptions = dict(
    packages=['openpyxl'],
    excludes=['pytest', 'wx', 'scipy', 'pandas', 'numpy', 'notebook', 'nbformat', 'nbconvert', 'qtpy', 'PIL'],
    include_files=include_files,
)

 
setup(
    name='cmis compare tool',
    version='0.0.1',
    description='cmis compare tool, lumentum',
    options=dict(build_exe=buildOptions),
    executables=executables)